package com.jxnd.sunflower.mapper;

import com.jxnd.sunflower.domain.RCollection;
import com.jxnd.sunflower.domain.RGoods;
import com.jxnd.sunflower.domain.RUser;
import org.mapstruct.Mapper;

import java.util.List;


public interface RCollectionMapper {

    //查询收藏总数
    Integer count(Integer id);


    //查询是否收藏
    Integer queryisCollection(int userId,int goodsId);

    //收藏
    int insertCollection(RCollection collection);

    //查询你收藏的商品
    List<RGoods> queryGoods(Integer userId);


    Integer deleteCollection(int userId,int goodsId);
}